package com.example.myservice_provider.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 有点意思
 * @since 2022-12-20
 */
@Data
public class Comment implements Serializable {

    @TableId(value = "comId", type = IdType.AUTO)
    private Integer comId;

    @TableField(value = "comContent")
    private String comContent;

    @TableField(value = "postId")
    private Integer postID;

    @TableField(value = "userId")
    private Integer userID;

    @TableField(value = "comTime")
    private LocalDateTime comTime;

    private Integer star;


    @TableField(exist = false)
    private String Username;
    @TableField(exist = false)
    private String Userimg;

}
